//
//  IWDiscoverViewController.m
//
//
//  Created by apple on .
//  Copyright (c) 2015年 itcast. All rights reserved.
//

#import "TTDiscoverViewController.h"
#import "TTSearchBar.h"

@interface TTDiscoverViewController ()

@end

@implementation TTDiscoverViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    // 1.添加搜索框
    TTSearchBar *searchBar = [[TTSearchBar alloc] init];
    searchBar.placeholder = @"亲~请输入要搜索的内容";
    searchBar.frame = CGRectMake(999, 999, 300, 35);
    self.navigationItem.titleView = searchBar;

}

#pragma mark - scorllview delegate
- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView
{
//    IWLog(@"scrollViewWillBeginDragging");
    [self.navigationController.navigationBar endEditing:YES];
}



@end
